<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:a4j="http://richfaces.org/a4j"
   xmlns:c="http://java.sun.com/jstl/core"
   xmlns:rich="http://richfaces.org/rich">




   		<ui:composition template="../../templates/templateJsf.xhtml">
   
   		<ui:define name="pageTitle">Utenti Registrati</ui:define>
  
		<ui:define name="pageHeader">Utenti Registrati</ui:define>
		
		<ui:define name="pageHeader">
						<ui:include src="/areaPrivata/adminMenu.xhtml" />
		</ui:define>
		
		<ui:define name="leftBody">
				<ui:include src="../richMenu.xhtml" />
		</ui:define>
	
		
			
  				<ui:define name="centerBody">
				     <rich:panel header="Visualizza Utenti" styleClass="style"  style=" height : 500px;" >
				      <h:form>
				      <rich:dataTable value="#{handlerUtente.listautenti}" var="u" border="1" >
				         	<rich:column>
				            	<f:facet name="header">Username</f:facet>
				            	<h:outputText value="#{u.id}" />
				          	</rich:column>
				       		<rich:column>
				            	<f:facet name="header">Nome</f:facet>
				            	<h:outputText value="#{u.nome}" />
				          	</rich:column>
				          	<rich:column>
				            	<f:facet name="header">Cognome</f:facet>
				            	<h:outputText value="#{u.cognome}" />
				          	</rich:column>
				          	<rich:column>
				            	<f:facet name="header">Password</f:facet>
				            	<h:outputText value="#{u.password}" />
				          	</rich:column>
				          	
				          	<rich:column>
				            	<f:facet name="header">Codice Fiscale</f:facet>
				            	<h:outputText value="#{u.codiceFiscale}" />
				          	</rich:column>
				          	<rich:column>
				            	<f:facet name="header"></f:facet>
								<h:commandLink value="Modifica" action="#{handlerUtente.visualizzaToModifica(u.id)}" />
				          		
				          	</rich:column>
				          	<rich:column>
				          		
				            	<f:facet name="header"></f:facet>
								<h:commandLink value="Elimina" action="#{handlerUtente.deleteUtente(u)}" />
				          
				          	</rich:column>
				          	<rich:column>
				          		
				            	<f:facet name="header"></f:facet>
								<h:commandLink value="Dettagli" action="#{handlerUtente.visualizzaToDettagli(u.id)}" />
				         		 
				          	</rich:column>
				          	
				          	
				      </rich:dataTable>
				     
				      <br /><br />
					</h:form>
				
					<h:form>
						<h:commandButton value="Inserisci Utente" action="#{handlerUtente.showPageAddUtente()}" />
					</h:form>
						
				     </rich:panel>
   </ui:define>
		

</ui:composition>
</html>
